package models_live

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
	"time"
)

type LiveRoomBanneduser struct {
	Id         int       `json:"id" gorm:"primaryKey;autoIncrement"`
	Uid        int       `json:"uid"`
	Anchorid   int       `json:"anchorid"`
	Mgrid      int       `json:"mgrid"`
	CreateTime time.Time `json:"create_time"`
	BanTime    int64     `json:"ban_time"`
	Reason     string    `json:"reason"`   //禁言理由
	AdminId    int       `json:"admin_id"` //后台操作id
	BanType    int       `json:"ban_type"` //禁言理由编号
	BanMsg     string    `json:"ban_msg"`  //引发禁言的发言内容
}

func (LiveRoomBanneduser) TableName() string {
	return fmt.Sprintf("%slive_room_banneduser", models.Prefix)
}
